package com.base.logistics.jdl.bean.trace;

import java.io.Serializable;

/**
 * <pre>
 * 查询物流轨迹参数对象（给消费者）
 * </pre>
 * @since 2021-02-19
 */
public class Waybill2cTraceDTO   implements Serializable {

    /**
     * 配送商家编码，自动添加
     * <pre>
     * 是否必填：否
     * </pre>
     */
    private String tradeCode;

    /**
     * 运单号
     * <pre>
     * 是否必填：是
     * </pre>
     */
    private String waybillCode;

    public Waybill2cTraceDTO() {
    }

    public String getTradeCode() {
        return this.tradeCode;
    }

    public String getWaybillCode() {
        return this.waybillCode;
    }

    public void setTradeCode(String tradeCode) {
        this.tradeCode = tradeCode;
    }

    public void setWaybillCode(String waybillCode) {
        this.waybillCode = waybillCode;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof Waybill2cTraceDTO)) return false;
        final Waybill2cTraceDTO other = (Waybill2cTraceDTO) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$tradeCode = this.getTradeCode();
        final Object other$tradeCode = other.getTradeCode();
        if (this$tradeCode == null ? other$tradeCode != null : !this$tradeCode.equals(other$tradeCode)) return false;
        final Object this$waybillCode = this.getWaybillCode();
        final Object other$waybillCode = other.getWaybillCode();
        if (this$waybillCode == null ? other$waybillCode != null : !this$waybillCode.equals(other$waybillCode))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof Waybill2cTraceDTO;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $tradeCode = this.getTradeCode();
        result = result * PRIME + ($tradeCode == null ? 43 : $tradeCode.hashCode());
        final Object $waybillCode = this.getWaybillCode();
        result = result * PRIME + ($waybillCode == null ? 43 : $waybillCode.hashCode());
        return result;
    }

    public String toString() {
        return "Waybill2cTraceDTO(tradeCode=" + this.getTradeCode() + ", waybillCode=" + this.getWaybillCode() + ")";
    }
}
